<?php
/**
 * Created by PhpStorm.
 * Admininfo: Administrator
 * Date: 2017/12/13
 * Time: 14:05
 */

namespace app\common\validate;
use think\Validate;
class Goods extends Validate{
    protected $rule=[
              ["goods_name","require|unique:goods","商品名称不能为空|商品名称不能重复"],
              ["goods_price","require","商品价格不能为空"],
              ["goods_num","require","商品库存不能为空"],
//              ["goods_image","require","请上传商品图片"],
          ];
}